package com.zlx.mall.basic.common.exception;

import com.zlx.mall.basic.common.enums.ResponseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author qingke
 **/
@Getter
@AllArgsConstructor
public enum BaseResponseStatusEnum implements ResponseEnum {
    /**
     * Success
     */
    SUCCESS(200, "success"),
    /**
     * Failure
     */
    FAILURE(500, "failure"),
    /** Illegal Request Argument */
    ILLEGAL_REQUEST_ARGUMENT(101, "不合法的请求参数"),

    /** 无效的登录状态 **/
    INVALID_LOGIN_STATUS(102, "登录失效，请重新登录"),

    /**
     * Illegal Signature
     */
    ILLEGAL_SIGNATURE(103, "非法签名"),

    ;


    private final Integer code;
    private final String message;

}
